class LinearSearch:
    @staticmethod
    def search(data_list: list, target: int) -> int:
        for e in enumerate(data_list):
            if e[1] == target:
                return e[0]
        return -1


if __name__ == "__main__":
    data = [24, 18, 12, 9, 16, 66, 32, 4]
    result = LinearSearch.search(data, 16)
    print(result)
